%% set_param函数功能的封装
% 对于9个输出端进行一次赋值
function newState = mysetparam(param)
%U1A
set_param("Tester/Subsystem/U1A","U1Aamp",num2str(param(1)));
set_param("Tester/Subsystem/U1A","U1Afre",num2str(param(2)));
set_param("Tester/Subsystem/U1A","U1Aphase",num2str(param(3)));
%U1B
set_param("Tester/Subsystem/U1B","U1Bamp",num2str(param(4)));
set_param("Tester/Subsystem/U1B","U1Bfre",num2str(param(5)));
set_param("Tester/Subsystem/U1B","U1Bphase",num2str(param(6)));
%U1C
set_param("Tester/Subsystem/U1C","U1Camp",num2str(param(7)));
set_param("Tester/Subsystem/U1C","U1Cfre",num2str(param(8)));
set_param("Tester/Subsystem/U1C","U1Cphase",num2str(param(9)));
%U2A
set_param("Tester/Subsystem/U2A","U2Aamp",num2str(param(10)));
set_param("Tester/Subsystem/U2A","U2Afre",num2str(param(11)));
set_param("Tester/Subsystem/U2A","U2Aphase",num2str(param(12)));
%U2B
set_param("Tester/Subsystem/U2B","U2Bamp",num2str(param(13)));
set_param("Tester/Subsystem/U2B","U2Bfre",num2str(param(14)));
set_param("Tester/Subsystem/U2B","U2Bphase",num2str(param(15)));
%U2C
set_param("Tester/Subsystem/U2C","U2Camp",num2str(param(16)));
set_param("Tester/Subsystem/U2C","U2Cfre",num2str(param(17)));
set_param("Tester/Subsystem/U2C","U2Cphase",num2str(param(18)));
%I1A
set_param("Tester/Subsystem/IA","IAamp",num2str(param(19)));
set_param("Tester/Subsystem/IA","IAfre",num2str(param(20)));
set_param("Tester/Subsystem/IA","IAphase",num2str(param(21)));
%I1B
set_param("Tester/Subsystem/IB","IBamp",num2str(param(22)));
set_param("Tester/Subsystem/IB","IBfre",num2str(param(23)));
set_param("Tester/Subsystem/IB","IBphase",num2str(param(24)));
%I1C
set_param("Tester/Subsystem/IC","ICamp",num2str(param(25)));
set_param("Tester/Subsystem/IC","ICfre",num2str(param(26)));
set_param("Tester/Subsystem/IC","ICphase",num2str(param(27)));
% % Outs
set_param("Tester/Subsystem/OUT1","out1",num2str(param(28)));
set_param("Tester/Subsystem/OUT2","out2",num2str(param(29)));
set_param("Tester/Subsystem/OUT3","out3",num2str(param(30)));
set_param("Tester/Subsystem/OUT4","out4",num2str(param(31)));
set_param("Tester/Subsystem/OUT5","out5",num2str(param(32)));
set_param("Tester/Subsystem/OUT6","out6",num2str(param(33)));
set_param("Tester/Subsystem/OUT7","out7",num2str(param(34)));
set_param("Tester/Subsystem/OUT8","out8",num2str(param(35)));
set_param("Tester/Subsystem/OUT9","out9",num2str(param(36)));
end